﻿using System;
using System.Threading.Tasks;

namespace EasySocket
{
    public interface IEasySocketTcpClient : IDisposable
    {

        /// <summary>
        /// 启动
        /// </summary>
        Task StartAsync(EasySocketClientOption option);

        /// <summary>
        /// 发送数据
        /// </summary>
        /// <param name="data"></param>
        Task SendAsync(byte[] data);
    }
}
